package ma.co.ba.BusinessApplications.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue("Intervention")
public class Intervention extends Work {

	private static final long serialVersionUID = 1L;

	@ManyToOne(fetch = FetchType.EAGER)
	private Utilisateur consultant;

	@ManyToOne(fetch = FetchType.EAGER)
	private DAT dat;

	public Intervention() {
	}

	public DAT getDat() {
		return dat;
	}

	public void setDat(DAT dat) {
		this.dat = dat;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Utilisateur getConsultant() {
		return consultant;
	}

	public void setConsultant(Utilisateur consultant) {
		this.consultant = consultant;
	}

}
